package main

import (
	"fmt"
	"study.com/base/结构体/工厂模式/stu"
)

func main() {

	//定student结构体是首字母小写，我们可以通过工厂模式来解决
	var st = stu.NewStudent("tom~", 98.8)

	fmt.Println(*st) //&{....}
	fmt.Println("name=", st.Name, " score=", st.GetScore())
}
